package uno;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;


public class Testing{
        Scanner keyboard = new Scanner(System.in);
        public void printHand(ArrayList<Card> hand){
                System.out.println("Cards in hand:");
                for(int count = 0; count < hand.size(); count++){
                        System.out.print(count+": ");
                        if(hand.get(count).CardNumber <= 12){
                                if(hand.get(count).CardColor == 0){
                                        System.out.print("Red ");
                                }else if(hand.get(count).CardColor == 1){
                                        System.out.print("Green ");
                                }else if(hand.get(count).CardColor == 2){
                                        System.out.print("Blue ");
                                }else if(hand.get(count).CardColor == 3){
                                        System.out.print("Yellow ");
                                }
                        }
                        
                        
                        
                        if(hand.get(count).CardNumber <= 9){
                                System.out.print(hand.get(count).CardNumber+"; ");
                        }else if(hand.get(count).CardNumber == 10){
                                System.out.print("Skip; ");
                        }else if(hand.get(count).CardNumber == 11){
                                System.out.print("Draw 2; ");
                        }else if(hand.get(count).CardNumber == 12){
                                System.out.print("Reverse; ");
                        }else if(hand.get(count).CardNumber == 13){
                                System.out.print("Any Color; ");
                        }else if(hand.get(count).CardNumber == 14){
                                System.out.print("Any Color Draw 4; ");
                        }
                        System.out.println();
                }
//              try {
//                      System.in.read();
//              } catch (IOException e) {
//                      e.printStackTrace();
//              }
        }
        public String printCard(Card card){
                String returnString = "";
                if(card.CardNumber <= 12){
                        if(card.CardColor == 0){
                                returnString = returnString + "Red ";
                        }else if(card.CardColor == 1){
                                returnString = returnString + "Green ";
                        }else if(card.CardColor == 2){
                                returnString = returnString + "Blue ";
                        }else if(card.CardColor == 3){
                                returnString = returnString + "Yellow ";
                        }
                }
                
                
                
                if(card.CardNumber <= 9){
                        returnString = returnString + card.CardNumber + " ";
                }else if(card.CardNumber == 10){
                        returnString = returnString + "Skip ";
                }else if(card.CardNumber == 11){
                        returnString = returnString + "Draw 2 ";
                }else if(card.CardNumber == 12){
                        returnString = returnString + "Reverse ";
                }else if(card.CardNumber == 13){
                        returnString = returnString + "Any Color ";
                }else if(card.CardNumber == 14){
                        returnString = returnString + "Any Color Draw 4 ";
                }
                //System.out.println();
//              try {
//                      System.in.read();
//              } catch (IOException e) {
//                      e.printStackTrace();
//              }
                return returnString;
        }
}